package heman.server.entities;

public enum TableType {
	PUBLIC,PRIVATE,BY_INVITATION,IN_PLAY;
	public String toString(){
		if (this==PUBLIC)
			return "public";
		else if (this==PRIVATE)
			return "private";
		else if (this==BY_INVITATION)
			return "byInvitation";
		else return "inPlay";
	}
	public TableType fromString(String type){
		if(type.equals("public"))
			return PUBLIC;
		if(type.equals("private"))
			return PRIVATE;
		if(type.equals("byInvitation"))
			return BY_INVITATION;
		return IN_PLAY;
	}
}
